#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>


int Func(int n)
{
	int line = n;
	for (int i = 0; i < line; i++)
	{
		for (int j = 0; j < line - i; j++)
		{
			printf(" ");
		}
		for (int j = 0; j < 2 * i + 1; j++)
		{
			printf("*");
		}
			printf("\n");
	}
	for (int i = 0; i < line - 1; i++)
	{
		for (int j = 0; j < i+2 ; j++)
		{
			printf(" ");
		}
		for (int j = 0; j < 2 * (line-i) -3; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	Func(n);
	return 0;
}